%rebase base/layout title='Ivan\'s Blog'
%from utils import check_login,syntaxhighlighter
<div id="latest-post" class="post">
%if articles:
	%for art in articles:
	<h1 class="title">{{art.subject}}</h1>
	<div class="entry">
		<p>
			%str = syntaxhighlighter(art.shortness_content)
			{{!str}}
		</p>
		<p>类别: <a href="/viewcategory/{{art.category_id}}">{{art.cate_name}}</a>&nbsp;&nbsp;
		%if art.tags:
			标签:
			%for tag in art.tags:
			<a href="/tag/{{tag.val}}">{{tag.val}}&nbsp;</a>
			%end
		%end
		</p>
		<p class="meta">
			<span class="posted">多多洛发表于&nbsp;{{art.create_date.strftime("%Y年%m月%d日")}}</span>
			<a href="/viewarticle/{{art.id}}" class="permalink" title="阅读全文">阅读全文</a>
			<a href="/viewarticle/{{art.id}}#post_comment" class="comments" title="查看评论">{{art.comment_cnt}}</a>
		</p>
	</div>
	%end
	%if page_cnt > 1:
		<div>
			%include base/pagination current_page=current_page,page_cnt=page_cnt,page_link_prefix=page_link_prefix
		</div>
	%end

%else:
	没找到相应的文章！
%end
</div>
<link type="text/css" rel="stylesheet" href="/style/syntax_highlighter/shCore.css"/>
<link type="text/css" rel="stylesheet" href="/style/syntax_highlighter/shCoreDefault.css"/>
<script type="text/javascript" src="/scripts/syntax_highlighter/shCore.js"></script>
<script type="text/javascript" src="/scripts/syntax_highlighter/shAutoloader.js"></script>
<script type="text/javascript" src="/scripts/syntax_highlighter/shBrushCSharp.js"></script>
<script type="text/javascript" src="/scripts/syntax_highlighter/shBrushJava.js"></script>
<script type="text/javascript" src="/scripts/syntax_highlighter/shBrushJScript.js"></script>
<script type="text/javascript" src="/scripts/syntax_highlighter/shBrushPlain.js"></script>
<script type="text/javascript" src="/scripts/syntax_highlighter/shBrushPython.js"></script>
<script type="text/javascript" src="/scripts/syntax_highlighter/shBrushRuby.js"></script>
<script type="text/javascript" src="/scripts/syntax_highlighter/shBrushScala.js"></script>
<script type="text/javascript" src="/scripts/syntax_highlighter/shBrushCpp.js"></script>
<script type="text/javascript" src="/scripts/syntax_highlighter/shBrushCss.js"></script>
<script type="text/javascript" src="/scripts/syntax_highlighter/shBrushPhp.js"></script>
<script type="text/javascript" src="/scripts/syntax_highlighter/shBrushSql.js"></script>
<script type="text/javascript" src="/scripts/syntax_highlighter/shBrushXml.js"></script>
<script type="text/javascript">SyntaxHighlighter.all();</script>
<div id="sidebar1">
	%include base/left
</div>